package com.lyEducation.entities.base;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public abstract class BaseCodeEntity extends BaseDataEntity {
  private String code;

  //  @NotBlank(message = "code不能为空"), unique = true
  @Basic
  @Column(name = "code", nullable = true, length = 64)
  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }
}
